package com.sbpm.crmbpm.client.deprecforms;

/**
 * Created by TT on 21.12.2014.
 */
public class LegalApprovalForm extends InsuranceRequestForm
{

    public LegalApprovalForm()
    {
        init( "Согласование юриста" );
    }

    @Override
    public void applyVisibility()
    {
        enableClientName( true );
        enableIsVip( true );
        enableDescription( true );
        enableEventDate( true );
        clientName.setReadOnly( true );
        eventDate.setReadOnly( true );
        isVip.disable();
        description.disable();
        enableDamageSum( true );
        damageSum.setReadOnly( true );
        enableApprovedByLegal( true );
    }

    @Override
    public String getTaskDescription()
    {
        return "Необходимо провести оценку правомерности действий.";
    }
}